package br.xraylol.client;

import org.springframework.stereotype.Component;

import br.xraylol.bean.riot.RankedStatsBean;
import br.xraylol.constant.ServiceType;
import br.xraylol.custom.list.PlayerStatsSummaryList;

@Component
public class StatsClient extends GenericClient {

	public StatsClient() {
		super(ServiceType.STATS);
	}

	public RankedStatsBean findRankedStats(Long summonerId) {
		return findAll("/by-summoner/" + summonerId + "/ranked?season=SEASON4", RankedStatsBean.class, true);
	}
	
	public PlayerStatsSummaryList findSummariesStats(Long summonerId) {
		return findAll("/by-summoner/" + summonerId + "/summary?season=SEASON4", PlayerStatsSummaryList.class, true);
	}
}
